// const HOST = "http://wuliming.com/api";
const HOST = "http://xiaochengxu.itliming.cn/api";

module.exports = {
	HOST: HOST,
	goods: {
		GetGoods: {url: '/home/goods', method: "GET"},
        DeleteGoods: {url: '/home/goods/', method: "DELETE"},
		GetShowGoods: {url: '/home/goods/', method: "GET"},
        GetGoodsComment: {url: '/home/comment/', method: "GET"},
		PostGoodsComment: {url: '/home/comment', method: "POST"},
        DeleteGoodsComment: {url: '/home/comment/', method: "DELETE"},
        PostGoodsCommentReply: {url: '/home/comment_reply', method: "POST"},
		PostGoods: {url: '/home/goods', method: 'POST'},
	},
	cart: {
		GetShoppingCart: {url: '/home/shopping_cart', method: "GET"},
		PostShoppingCart: {url: '/home/shopping_cart', method: "POST"},
		PutShoppingCart: {url: '/home/shopping_cart/', method: "PUT"},
		DeleteShoppingCart: {url: '/home/shopping_cart/', method: "DELETE"},
		DeleteShoppingCartAll: {url: '/home/shopping_cart', method: "DELETE"},
	},
	login: {
		PostLogin: {url: '/home/login', method: 'POST'},//账号密码登录
		PostWxLogin: {url: '/home/wx_login', method: 'POST'},//微信小程序一键登录
		PostSignUp: {url: '/home/sign_up', method: 'POST'},//注册账号
		PutForgetPassword: {url: '/home/forget_password', method: 'PUT'},//忘记密码，重置密码
		GetGetCode: {url: '/home/get_code', method: 'GET'},//获取短信验证码
		DeleteLogout: {url: '/home/client', method: 'DELETE'},//退出登录，注销登录
	},
	address: {
		GetDistricts: {url: '/districts', method: 'GET'},//获取地区
        GetAddress:  {url: '/home/address_show', method: 'GET'},//根据id获取一个地址的详细信息
		GetAllAddress:  {url: '/home/address', method: 'GET'},//获取所有的收货地址
		PostAddress:  {url: '/home/address', method: 'POST'},//新增一个地址信息
		PutAddress:  {url: '/home/address', method: 'PUT'},//修改一个地址信息
		DeleteAddress:  {url: '/home/address', method: 'DELETE'},//删除一个地址信息
	},
	order: {
        GetOrder: {url: '/home/order', method: 'GET'},//获取订单列表
        GetAnOrder: {url: '/home/order/', method: 'GET'},//获取订单列表
		PostOrder: {url: '/home/order', method: 'POST'},//下单
		PutOrder: {url: '/home/order/', method: 'PUT'},//修改订单状态
		DeleteOrder: {url: '/home/order/', method: 'DELETE'},//删除订单
        GetShipOrder: {url: '/home/order_ship_list', method: 'GET'},//需要发货的订单列表
        PutShipOrder: {url: '/home/order_ship', method: 'PUT'},//发货的订单
	},
	upFiles:{
		PostUpFiles: {url: '/home/storages', method: 'POST'},//上传文件接口
	},
	client: {
		GetClient: {url: '/home/client', method: 'GET'},//获取自己的用户资料包括token，为的是长期没有退出登录，如卖了东西账户的余额增多了，前端显示的是老数据
		PutClient: {url: '/home/client', method: 'PUT'},//修改用户资料
	},
	recharge: {
		PostRecharge: {url: '/home/recharge_order', method: 'POST'},//充值
		GetRecharge: {url: '/home/recharge_order', method: 'GET'},//获得充值列表
	}
};